@import "global";

.g_barhead {
	display: block;
	height: 10px;
	width: 100%;
	background: linear-gradient(@colorBarTop, @colorBarEnd);
	border-bottom: 1px solid black;
	border-top: 1px solid @colorShadow;
	text-align: center;
	font-size: 12px;
}

.g_tab{
	height: 22px;
	width: 100%;
	background: linear-gradient(@colorBarTop, @colorBarEnd);
	border-bottom: 1px solid @colorShadow;
	text-align: left;
	&.sec{
		border-top: 1px solid black;
	}
	span{
		display: inline-block;
		border-right: 1px solid black;
		color: #bbb;
		font-size: 12px;
		text-align: center;
		padding: 0 4px;
		line-height: 22px;
		float: left;
		&.curr{
			background: linear-gradient(#525252, @colorBarTop);
			color: white;
		}
	}
}

.g_dialog {
	border: 1px solid black;
	box-shadow: 0 0 2px mix(@colorTheme, black, 80%);
	background-color: @colorTheme;
	position: absolute;
	left: 50%;
	top: 50%;
	display: none;
	box-sizing: border-box;
	text-align: center;
	transition: height 0.3s linear, margin-top 0.3s linear;
	.g_barhead{
		height: 20px;
		line-height: 20px;
		i{
			display: block;
			position: absolute;
			right: 2px;
			top: 2px;
			width: 16px;
			height: 16px;
			.radius(8px);
			border: 1px solid #222;
			cursor: pointer;
			background-color: @colorRed;
		}
	}
	.g_body{
		width: 100%;
		padding: 10px;
		box-sizing: border-box;
	}
	.g_bt{
		position: relative;
		margin:4px auto 0;
		border-top: 1px solid black;
		line-height: 40px;
		&:before{
			.shadow;
			content: '';
			position: absolute;
			top: 0;
		}
	}
	.g_tip{
		font-size: 12px;
		color: #eee;
	}
	input, textarea{
		border: 1px solid black;
		background: @colorInput;
		text-align: center;
		margin-left: 16px;
		color: @colorText;
		outline: none;
		font-size: 12px;
	}
}

.g_io{
	display: none;
}

.g_img{
	background-repeat: no-repeat;
	background-size: cover;
	background-position: 50% 50%;
	overflow: hidden;
}

.g_button {
	display: inline-block;
	.middle(24px);
	width: 80px;
	margin: 0 2px;
	border: 1px solid black;
	.inner-shadow(2px, rgba(255, 255, 255, 0.12));
	background: linear-gradient(#4f4f4f, #393939);
	text-align: center;
	&:hover {
		background: linear-gradient(#57708d, #2e4463);
	}
	&.press{
		.inner-shadow(2px, #222);
		background: linear-gradient(#434343, #313131);
	}
}

.g_toolicon{
	width: 24px;
	height: 24px;
	.radius(2px);
	i{
		background-image: url('../img/tool.png');
		background-size: 140px;
		display: block;
		width: 100%;
		height: 100%;
	}
}

.g_list{
	overflow-x: hidden;
	overflow-y: auto;
	.scrollbar;
	text-align: center;
	li{
		width: 100%;
		margin: 0 auto;
		line-height: 24px;
		background: mix(@colorTheme, white, 94%);
		border-bottom: 1px solid #191919;
		&:hover{
			background-color: @colorHover;
		}
	}
}

.g_slide{
	position: relative;
	min-height: 20px;
	.g_slide_ball, .g_slide_bar{
		position: absolute;
		top: 50%;
		height: 6px;
		.radius(2px);
		border: 1px solid black;
		box-sizing: border-box;
	}
	.g_slide_bar{
		margin-top: -3px;
		width: 100%;
		background: @colorDeep;
	}
	.g_slide_ball{
		width: 16px;
		height: 16px;
		.radius(100%);
		margin-top: -8px;
		background: linear-gradient(#4f4f4f, #393939);
		&:hover {
			background: linear-gradient(#57708d, #2e4463);
		}
	}
}